﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LGCourt.Logic.BLL;

namespace lgweb.user
{
    public partial class RetrievePassword : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            UserInfo bll = new UserInfo();
            int identityType = this.rdoActivation1.Checked ? 0 : 1;

            bool result = bll.GetPassword(identityType, this.txtidentityCard.Value,this.txtMoblie.Value,this.txtPassword.Value);

            if (result)
            {
                this.divMessages.InnerHtml = "密码已成功修改，您可以点击 [<a href='/user/login.aspx'>登录</a>] 进入当事人通道！";
            }
            else
            {
                this.divMessages.InnerHtml = "密码修改失败！";
            }
        }
    }
}